// 系统调用编号
#ifndef __SYSCALL_NUM_H__
#define __SYSCALL_NUM_H__

// 文件相关
#define SYS_getcwd      17       
#define SYS_pipe2       59        
#define SYS_dup         23        
#define SYS_dup2        24        
#define SYS_chdir       49        
#define SYS_openat      56        
#define SYS_close       57        
#define SYS_getdents64  61        
#define SYS_read        63       
#define SYS_write       64       
#define SYS_linkat      37       
#define SYS_unlinkat    35       
#define SYS_mkdirat     34       
#define SYS_fstat       80       
#define SYS_umount2     39       
#define SYS_mount       40       

// 进程相关
#define SYS_clone       220      
#define SYS_execve      221     
#define SYS_wait4       260      
#define SYS_exit        93       
#define SYS_getppid     173       
#define SYS_getpid      172      

// 内存相关
#define SYS_brk         214      
#define SYS_munmap      215      
#define SYS_mmap        222   

// 其他
#define SYS_times        153     
#define SYS_uname        160     
#define SYS_sched_yield  124     
#define SYS_gettimeofday 169     
#define SYS_nanosleep    101

#define SYS_shutdown     8

#endif